package org.dromara.system.domain.bo;

import org.dromara.system.domain.AppDriverDetail;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 司机详情业务对象 app_driver_detail
 *
 * @author Lion Li
 * @date 2025-09-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AppDriverDetail.class, reverseConvertGenerate = false)
public class AppDriverDetailBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 身份 0运输公司 1个人
     */
    private Long identityType;

    /**
     * 状态 0审核中 1通过 2拒绝
     */
    private Long status;

    /**
     * 运输公司名称
     */
    private String transportCompany;

    /**
     * 公司规模
     */
    private String companyScale;

    /**
     * 纳税人识别号
     */
    @NotBlank(message = "纳税人识别号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taxpayerId;

    /**
     * 联系人姓名
     */
    @NotBlank(message = "联系人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactName;

    /**
     * 联系人手机号
     */
    @NotBlank(message = "联系人手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactPhone;

    /**
     * 司机姓名
     */
    @NotBlank(message = "司机姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String driverName;

    /**
     * 司机身份证号
     */
    @NotBlank(message = "司机身份证号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String driverIdCard;

    /**
     * 司机手机号
     */
    @NotBlank(message = "司机手机号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String driverPhone;

    /**
     * 车头照片
     */
    @NotBlank(message = "车头照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String truckFrontPhoto;

    /**
     * 个人免冠照
     */
    @NotBlank(message = "个人免冠照不能为空", groups = { AddGroup.class, EditGroup.class })
    private String personalPhoto;

    /**
     * 驾驶证照片
     */
    @NotBlank(message = "驾驶证照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String drivingLicensePhoto;

    /**
     * 行驶证照片
     */
    @NotBlank(message = "行驶证照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vehicleLicensePhoto;

    /**
     * 车牌号
     */
    @NotBlank(message = "车牌号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carPlate;

    /**
     * 车辆类型
     */
    @NotBlank(message = "车辆类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carType;

    /**
     * 车长(米)
     */
    @NotNull(message = "车长(米)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long carLength;

    /**
     * 载重量(吨)
     */
    @NotNull(message = "载重量(吨)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long loadCapacity;

    /**
     * 备注
     */
    private String remark;


    /**
     * 验证码
     * */
    private String code;


}
